package com.hi.hiparty.solr;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.hi.hiparty.dao.query.QueryBase;

/**
 * 
 * @author zhouqin
 * 
 */
public class PartyQuery extends QueryBase {

	public final static int DEFAULT_PAGESIZE = 20;
	public final static double DEFAULT_RADIUS = 5.0;

	public final static int POS_TYPE_USER = 1;
	public final static int POS_TYPE_PARTY = 2;

	public static final transient String ORDER_BY_DESC = "desc";
	public static final transient String ORDER_BY_ASC = "asc";

	private String titlePattern;
	
	private int creatorSex;

	private Integer posType = POS_TYPE_PARTY; // 查询位置种类 1 用户，2活动
	
	private String latlon; //当前搜索用户的坐标
	
	private Double radius = DEFAULT_RADIUS; // 搜索半径

	private Date minCreateTime;

	public PartyQuery(){
		this.setPageSize(DEFAULT_PAGESIZE);
		this.setPage(1);
	}
	
	public String getTitlePattern() {
		return titlePattern;
	}

	public void setTitlePattern(String titlePattern) {
		this.titlePattern = titlePattern;
	}

	public int getCreatorSex() {
		return creatorSex;
	}

	public void setCreatorSex(int creatorSex) {
		this.creatorSex = creatorSex;
	}

	public Integer getPosType() {
		return posType;
	}

	public void setPosType(Integer posType) {
		this.posType = posType;
	}

	public Double getRadius() {
		return radius;
	}

	public void setRadius(Double radius) {
		this.radius = radius;
	}

	public Date getMinCreateTime() {
		return minCreateTime;
	}

	public void setMinCreateTime(Date minCreateTime) {
		this.minCreateTime = minCreateTime;
	}

	public String getLatlon() {
		return latlon;
	}

	public void setLatlon(String latlon) {
		this.latlon = latlon;
	}

}
